//: Playground - noun: a place where people can play

import UIKit

// 1.没有参数没有返回值
func aobut() -> Void {
  print("iPhoneX")
}

func about() {
    print("iPhoneX")
}

aobut()

let view : UIView


// 2.有参数没有返回值
func callPhone(phoneNum : String){
    print("打电话给\(phoneNum)")
}

callPhone(phoneNum: "10086")

// 3.没有参数有返回值
func readMessage() -> String{
    return "饿了么"
}

// 4.有参数有返回值
func sum(num1 : Int, num2 : Int) -> Int{
    return num1 + num2
}

sum(num1: 21, num2: 22)

